<!-- Begin files/files.tpl -->

{titlebar colspan=6 title=$lg->user_files}
{opentable}

<tr class="sectiontableheader" align="center">
<td align="left"><a href="?module=files&sort_by=name">{$lg->name}</a></td>
<td width="10%"><a href="?module=files&sort_by=uploaded_on">{$lg->on}</a></td>
<td width="10%"><a href="?module=files&sort_by=userid">{$lg->by}</a></td>
<td width="10%"><a href="?module=files&sort_by=size">{$lg->file_sizeKB}</a></td>
<td width="15%"><a href="?module=files&sort_by=mime">{$lg->type}</a></td>
<td width="5%">{$lg->delete}</td>
</tr>

{if is_array($files)}
{foreach from=$files item=file}
<tr class="{rowcolor}" align="center">
<td align="left"><img src="{ficon id=$file.fid}" border="0">  <a href="?module=files&action=view&fid={$file.fid}">{$file.name}</a></td>
<td width="10%">{$file.uploaded_on|userdate}</td>
<td width="10%">{username id=$file.userid}</td>
<td width="10%" align="right">{fsize id=$file.size}</td>
<td width="15%" align="right">{$file.mime}</td>

{if is_admin($smarty.session.userid)}
<td width="5%"><a href="?module=files&action=delete&fid={$file.fid}"><img src="{$smarty.env.imgs.delete}" border="0" alt="Delete" /></a></td>
{else}
<td width="5%">&nbsp;</td>
{/if}
{/foreach}
{else}
<tr class="sectiontableentry1" align="center"><td colspan="6">{$lg->no_data}</td></tr>
{/if}
</table>



<!-- End files/files.tpl -->

